home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / ODF / OS / FWGraphx / FWFctInf.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  2.5 KB  |  64 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWFctInf.h
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWFCTINF_H
  11. #define FWFCTINF_H
  12.  
  13. #ifndef SLGDEV_H
  14. #include "SLGDev.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. //    Forward class declaration
  19. //========================================================================================
  20.  
  21. class ODFacet;
  22. class FW_CPrintJobInfo;
  23.  
  24. //========================================================================================
  25. //    class FW_SPrivFacetPartInfo
  26. //========================================================================================
  27. //    FW_SPrivFacetPartInfo is set in each one of our facet part info 
  28.  
  29. struct FW_SPrivFacetPartInfo
  30. {
  31.     unsigned long                fMagicNumber1;            // I just want to be sure that it is one of my facet
  32.     unsigned long                fMagicNumber2;
  33.     FW_HGDevice                    fDevice;
  34.     ODHighlight                    fHighlight;
  35.     FW_Boolean                    fEmbeddedFacetCreated;
  36.     FW_CPrintJobInfo*            fPrintJobInfo;
  37.     unsigned long                fRefCon;                // for users
  38. };
  39.  
  40. //========================================================================================
  41. //    Global Functions
  42. //========================================================================================
  43.  
  44. // ----- Public API
  45. FW_HGDevice             FW_GetFacetGraphicDevice(Environment* ev, ODFacet* facet);
  46. unsigned long             FW_GetFacetRefCon(Environment* ev, ODFacet* facet);
  47. void                     FW_SetFacetRefCon(Environment* ev, ODFacet* facet, unsigned long refCon);
  48. const FW_CPrintJobInfo*    FW_GetFacetPrintJobInfo(Environment* ev, ODFacet* facet);
  49.  
  50. // ----- Implementation only
  51. FW_SPrivFacetPartInfo*     FW_PrivCreateFacetPartInfo(Environment* ev, ODFacet* facet);
  52. void                     FW_PrivDeleteFacetPartInfo(Environment* ev, ODFacet* facet);
  53. FW_SPrivFacetPartInfo*     FW_PrivGetFacetPartInfo(Environment* ev, ODFacet* facet);
  54.  
  55. ODHighlight             FW_PrivGetFacetHighlight(Environment* ev, ODFacet* facet);
  56. void                     FW_PrivSetFacetHighlight(Environment* ev, ODFacet* facet, ODHighlight highlight);
  57.  
  58. FW_Boolean                 FW_PrivAreEmbeddedFacetsCreated(Environment* ev, ODFacet* facet);
  59. void                     FW_PrivEmbeddedFacetsCreated(Environment* ev, ODFacet* facet, FW_Boolean state);
  60.  
  61. void                     FW_PrivSetFacetPrintJobInfo(Environment* ev, ODFacet* facet, FW_CPrintJobInfo* info);
  62.  
  63. #endif
  64.